-- GENERATED SPELL FOR [Arcane Watchman] --


function spell0_16485(pUnit, Event) --@Crystal Strike,n/a--
pUnit:FullCastSpellOnTarget(29765,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16485', 579, 1)
end

function spell1_16485(pUnit, Event) --@Overload,n/a--
pUnit:FullCastSpellOnTarget(29768,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16485', 10500, 1)
end

function Sorts_16485(pUnit, Event)
local choix_sorts_16485 = math.random(0, 1)
if choix_sorts_16485 == 0 then
pUnit:RegisterEvent('spell0_16485', 1, 1)
end
if choix_sorts_16485 == 1 then
pUnit:RegisterEvent('spell1_16485', 1, 1)
end
end

function mob16485_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16485', math.random(1500, 3000), 1)
end

function mob16485_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16485_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16485_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16485, 1, 'mob16485_Action')
RegisterUnitEvent(16485, 2, 'mob16485_Leave')
RegisterUnitEvent(16485, 3, 'mob16485_Kill')
RegisterUnitEvent(16485, 4, 'mob16485_Die')
